<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>maint/utils/travis-build.sh</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/maint.html'>maint</a>/<a href='../files/maint--utils.html'>utils</a>/travis-build.sh</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/maint.html'>maint</a>/<a href='../files/maint--utils.html'>utils</a>/travis-build.sh</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 maint/utils/travis-build.sh'  /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>#!/bin/bash
<a id='L2' name='L2'></a>#
<a id='L3' name='L3'></a># Midnight Commander - build and test common configurations
<a id='L4' name='L4'></a>#
<a id='L5' name='L5'></a># Copyright (C) 2015
<a id='L6' name='L6'></a># The Free Software Foundation, Inc.
<a id='L7' name='L7'></a>#
<a id='L8' name='L8'></a># Written by:
<a id='L9' name='L9'></a>#  Slava Zanko &lt;slavazanko@gmail.com&gt;, 2015
<a id='L10' name='L10'></a>#  Yury V. Zaytsev &lt;yury@shurup.com&gt;, 2015
<a id='L11' name='L11'></a>#
<a id='L12' name='L12'></a># This file is part of the Midnight Commander.
<a id='L13' name='L13'></a>#
<a id='L14' name='L14'></a># The Midnight Commander is free software: you can redistribute it
<a id='L15' name='L15'></a># and/or modify it under the terms of the GNU General Public License as
<a id='L16' name='L16'></a># published by the Free Software Foundation, either version 3 of the License,
<a id='L17' name='L17'></a># or (at your option) any later version.
<a id='L18' name='L18'></a>#
<a id='L19' name='L19'></a># The Midnight Commander is distributed in the hope that it will be useful,
<a id='L20' name='L20'></a># but WITHOUT ANY WARRANTY; without even the implied warranty of
<a id='L21' name='L21'></a># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<a id='L22' name='L22'></a># GNU General Public License for more details.
<a id='L23' name='L23'></a>#
<a id='L24' name='L24'></a># You should have received a copy of the GNU General Public License
<a id='L25' name='L25'></a># along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
<a id='L26' name='L26'></a> 
<a id='L27' name='L27'></a>set -e
<a id='L28' name='L28'></a>set -x
<a id='L29' name='L29'></a> 
<a id='L30' name='L30'></a>function do_build() {
<a id='L31' name='L31'></a>    make
<a id='L32' name='L32'></a>    make -k check || true
<a id='L33' name='L33'></a>    make install
<a id='L34' name='L34'></a>}
<a id='L35' name='L35'></a> 
<a id='L36' name='L36'></a># Build distribution archive
<a id='L37' name='L37'></a>mkdir -p distrib &amp;&amp; cd $_
<a id='L38' name='L38'></a> 
<a id='L39' name='L39'></a>../configure
<a id='L40' name='L40'></a>make dist-bzip2
<a id='L41' name='L41'></a> 
<a id='L42' name='L42'></a>DISTFILE=$(ls mc-*.tar.bz2)
<a id='L43' name='L43'></a>DISTDIR=$(basename "$DISTFILE" .tar.bz2)
<a id='L44' name='L44'></a> 
<a id='L45' name='L45'></a>tar -xjf $DISTFILE
<a id='L46' name='L46'></a>cd $DISTDIR
<a id='L47' name='L47'></a> 
<a id='L48' name='L48'></a># Build default configuration (S-Lang)
<a id='L49' name='L49'></a>mkdir -p build-default &amp;&amp; pushd $_
<a id='L50' name='L50'></a> 
<a id='L51' name='L51'></a>../configure \
<a id='L52' name='L52'></a>    --prefix="$(pwd)/INSTALL_ROOT" \
<a id='L53' name='L53'></a>    --with-screen=slang \
<a id='L54' name='L54'></a>    --enable-maintainer-mode \
<a id='L55' name='L55'></a>    --enable-mclib \
<a id='L56' name='L56'></a>    --enable-charset \
<a id='L57' name='L57'></a>    --enable-aspell \
<a id='L58' name='L58'></a>    --enable-tests \
<a id='L59' name='L59'></a>    --enable-werror
<a id='L60' name='L60'></a> 
<a id='L61' name='L61'></a>do_build
<a id='L62' name='L62'></a> 
<a id='L63' name='L63'></a>popd
<a id='L64' name='L64'></a> 
<a id='L65' name='L65'></a># Build default configuration (ncurses)
<a id='L66' name='L66'></a>mkdir -p build-ncurses &amp;&amp; pushd $_
<a id='L67' name='L67'></a> 
<a id='L68' name='L68'></a>../configure \
<a id='L69' name='L69'></a>    --prefix="$(pwd)/INSTALL_ROOT" \
<a id='L70' name='L70'></a>    --with-screen=ncurses \
<a id='L71' name='L71'></a>    --enable-maintainer-mode \
<a id='L72' name='L72'></a>    --enable-mclib \
<a id='L73' name='L73'></a>    --enable-charset \
<a id='L74' name='L74'></a>    --enable-aspell \
<a id='L75' name='L75'></a>    --enable-tests \
<a id='L76' name='L76'></a>    --enable-werror
<a id='L77' name='L77'></a> 
<a id='L78' name='L78'></a>do_build
<a id='L79' name='L79'></a> 
<a id='L80' name='L80'></a>popd
<a id='L81' name='L81'></a> 
<a id='L82' name='L82'></a># Build all disabled
<a id='L83' name='L83'></a>mkdir -p build-all-disabled &amp;&amp; pushd $_
<a id='L84' name='L84'></a> 
<a id='L85' name='L85'></a>../configure \
<a id='L86' name='L86'></a>    --prefix="$(pwd)/INSTALL_ROOT" \
<a id='L87' name='L87'></a>    --disable-maintainer-mode \
<a id='L88' name='L88'></a>    --disable-mclib \
<a id='L89' name='L89'></a>    --disable-charset \
<a id='L90' name='L90'></a>    --disable-aspell \
<a id='L91' name='L91'></a>    --disable-largefile \
<a id='L92' name='L92'></a>    --disable-nls \
<a id='L93' name='L93'></a>    --disable-vfs \
<a id='L94' name='L94'></a>    --disable-background \
<a id='L95' name='L95'></a>    --without-mmap \
<a id='L96' name='L96'></a>    --without-x \
<a id='L97' name='L97'></a>    --without-gpm-mouse \
<a id='L98' name='L98'></a>    --without-internal-edit \
<a id='L99' name='L99'></a>    --without-diff-viewer \
<a id='L100' name='L100'></a>    --without-subshell \
<a id='L101' name='L101'></a>    --enable-tests \
<a id='L102' name='L102'></a>    --enable-werror
<a id='L103' name='L103'></a> 
<a id='L104' name='L104'></a>do_build
<a id='L105' name='L105'></a> 
<a id='L106' name='L106'></a>popd
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+106 maint/utils/travis-build.sh'  /> */</em>
</body>
</html>
